package ejb;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.Query;

import dao.BaseDao;
import entity.Classes;

@Stateless
public class ClassesBean extends BaseDao<Classes> implements ClassesBeanRemote, ClassesBeanLocal {

	@SuppressWarnings("unchecked")
	@Override
	public List<Classes> getAll() {
		Query query = this.em.createNamedQuery("Classes.findAll");
		return query.getResultList();
	}

}
